package configuration;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * 获取代理类型
 * local 本地
 * remote 远程
 * 默认为远程
 *
 * @author wxf
 */
@ConfigurationProperties(prefix = "request.proxy")
public class RequestTypeConfiguration {
    public static final String LOCAL_PROXY_TYPE = "local";
    public static final String REMOTE_PROXY_TYPE = "remote";
    private String type = REMOTE_PROXY_TYPE;

    public void setType(String type) {
        this.type = type;
    }

    public String getType() {
        return type;
    }
}
